package com.inibb.app.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OrderBy;
import javax.persistence.Table;


@Entity
@Table(name = "NOTES")
public class Note extends BasePO implements Serializable{

	private static final long serialVersionUID = 1L;
	private Integer noteId;
	private Integer parentId;
	private String noteType;
	private String title;
	private String content;
	private String subjectInd;
	private String editableInd;
	private String actvInd;

	@Id
	@Column(name = "NOTE_ID", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@OrderBy("ASC")
	public Integer getNoteId() {
		return noteId;
	}

	public void setNoteId(Integer id) {
		this.noteId = id;
	}
	
	@Column( name="PARENT_ID" )
	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	
	@Column( name="NOTE_TYPE" )
	public String getNoteType() {
		return noteType;
	}

	public void setNoteType(String noteType) {
		this.noteType = noteType;
	}
	@Column( name="TITLE" )
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	@Column( name="CONTENT" )
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Column( name="SUBJECT_IND", length=POConstants.IND_LENGTH )
	public String getSubjectInd() {
		return subjectInd;
	}

	public void setSubjectInd(String subjectInd) {
		this.subjectInd = subjectInd;
	}
	
	@Column( name="EDITABLE_IND", length=POConstants.IND_LENGTH )
	public String getEditableInd() {
		return editableInd;
	}

	public void setEditableInd(String editableInd) {
		this.editableInd = editableInd;
	}
	
	@Column( name="ACTV_IND", length=POConstants.IND_LENGTH )
	public String getActvInd() {
		return actvInd;
	}
	public void setActvInd(String actvInd) {
		this.actvInd = actvInd;
	}
	
}
